projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef13e5
)
(init_baud_rate) [HAVE_TERMIOS]: Use cfgetospeed.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 7 Jun 1993 23:57:08 +0000
(23:57 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 7 Jun 1993 23:57:08 +0000
(23:57 +0000)
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index db3a747d8cc4db99b46a5f3c8dd033d32b9a3021..982d361ae2a636bab97f130b2351af38c008a90a 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-239,7
+239,7
@@
init_baud_rate ()
sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600;
tcgetattr (0, &sg);
- ospeed =
sg.c_cflag & CBAUD
;
+ ospeed =
cfgetospeed (&sg)
;
#else /* neither VMS nor TERMIOS */
#ifdef HAVE_TERMIO
struct termio sg;
@@
-255,7
+255,8
@@
init_baud_rate ()
struct sgttyb sg;
sg.sg_ospeed = B9600;
- ioctl (0, TIOCGETP, &sg);
+ if (ioctl (0, TIOCGETP, &sg) < 0)
+ abort ();
ospeed = sg.sg_ospeed;
#endif /* not HAVE_TERMIO */
#endif /* not HAVE_TERMIOS */